package hpc.exercices.exercice3;

import java.util.Arrays;
import java.util.function.IntPredicate;

public class SequentialStreamCompaction {
	
	/*
	 * Sequential Stream Compaction
	 */
	public static int[] filter(int[] input, IntPredicate rule)
	{
		return Arrays.stream(input).filter(rule).toArray();
	}

}
